package control.panel.prompt
{
	import control.panel.PanelControl;
	
	import view.panel.prompt.PromptSelectCombineCardsPanel;
	
	public class PromptPanelSelectCombineCardsControl extends PanelControl implements IPromptPanelSelectCombineCardsControl
	{
		public function PromptPanelSelectCombineCardsControl()
		{
			super();
			_view.promptSelectCombineCardsPanel = new PromptSelectCombineCardsPanel(this);
		}
		
		public function showCombineCards(combineCardDatas:Array):void
		{
			_view.promptSelectCombineCardsPanel.updateCombineCards(combineCardDatas);
			_view.promptSelectCombineCardsPanel.open();
		}
		
		public function selectCombineCards(cardDatas:Array):void
		{
			_model.playerModel.sendPlayCards(cardDatas);
			
			_view.promptSelectCombineCardsPanel.close();
		}
		
		public function clear():void
		{
			_view.promptSelectCombineCardsPanel.close();
		}
	}
}